package cn.zust.ly.play.Exa;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by liy on 2016/12/1.
 */
public class Test07 {
    public static void main(String[] args) {
        Scanner sc = new  Scanner(System.in);
        while(true) {
            int n = sc.nextInt();
        }
    }

    public static class Cow
    {
        private int age;
        public Cow afterYear()
        {
            age++;
            return age > 2 ? new Cow() : null;
        }

        public static void showTotalCowNum(int n)
        {
            List<Cow> list = new ArrayList<Cow>();
            list.add(new Cow());

            for (int i = 0; i < n; i++)
            {
                int cowCount = list.size();
                for (int j = 0; j < cowCount; j++)
                {
                    Cow cow = list.get(j).afterYear();
                    if (cow != null)
                    {
                        cow.age=0;
                        list.add(cow);
                    }
                }
            }
            System.out.println(n + "年后，共有：" + list.size());
        }
    }



}
